package ff;


import java.util.Arrays;
import java.util.Scanner;
class ActionListener{
	private String x;
	public ActionListener(String x){
		this.x=x;
	
	}
	
	public String toString() {
		return x;
	}
}
class MySatrter{
	ActionListener ac;
	int n;
  public MySatrter(ActionListener ac,int n){
		this.ac=ac;
		this.n=n;
	}
  public void print(int n){
	  for(int x=1;x<=n;x++){
		  System.out.println(ac);
		 }  
		  System.out.println(this.getClass().getName());
		  System.out.println(Arrays.toString(this.getClass().getInterfaces()));
	 
  }
	public void start(){
		print(n);
	}
}
 public class Main2 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		ActionListener x=new ActionListener(sc.next());
		MySatrter starter=new MySatrter(x,n);
		
		    starter.start();
		    
	}

}
